home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13728 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: alterdial.uu.net!not-for-mail
  2. From: John Goolsby <jgoolsby@jax-inter.net>
  3. Newsgroups: comp.lang.c++
  4. Subject: Custom Buttons
  5. Date: Wed, 27 Mar 1996 11:53:23 -0500
  6. Message-ID: <31597283.6BB1@jax-inter.net>
  7. NNTP-Posting-Host: ppp056.jax-inter.net
  8. Mime-Version: 1.0
  9. Content-Type: text/plain; charset=us-ascii
  10. Content-Transfer-Encoding: 7bit
  11. X-Mailer: Mozilla 2.0GoldB1 (Win95; I)
  12.  
  13. I'm using Borland OWL Version 3 to create owner-drawable buttons from a 
  14. main window and having a problem.  The button appears with the backgrond 
  15. color I define but with nothing drawn inside and does not function when 
  16. I click it.
  17.  
  18. A derive a new class from TButton and OR Attr.Style with BS_OWNERDRAW.  
  19. Then I override GetClassName, GetWindowClass, ODADrawEntire, ODAFocus 
  20. and ODASelect functions.
  21.  
  22. The button does function if I return "BUTTON" in GetClassName.  However, 
  23. it does not display with the background color I define in 
  24. GetWindowClass.  Is this a Windows registration problem?  I was told 
  25. that OWL takes care of registration.
  26.  
  27. Can someone give me some direction on this?
  28.  
  29. John G.
  30.